package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * sku信息
 * @TableName admin_sku_exam
 */
@TableName(value ="admin_sku_exam")
@Data
public class AdminSkuExam implements Serializable {
    /**
     * skuId
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * spuId
     */
    @TableField(value = "spu_id")
    private Long spuId;

    /**
     * sku名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 所属分类id
     */
    @TableField(value = "category_id")
    private Long categoryId;

    /**
     * 默认图片
     */
    @TableField(value = "default_image")
    private String defaultImage;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 副标题
     */
    @TableField(value = "subtitle")
    private String subtitle;

    /**
     * 价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 重量（克）
     */
    @TableField(value = "weight")
    private Integer weight;

    /**
     * 商品库存
     */
    @TableField(value = "stock")
    private Long stock;

    /**
     * 已卖出商品数量
     */
    @TableField(value = "sell")
    private Long sell;

    /**
     * 商店id
     */
    @TableField(value = "store_id")
    private Long storeId;

    /**
     * 商店名
     */
    @TableField(value = "store_name")
    private String storeName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}